<?php
class Dig_Util_Class extends Dig_Util_Abstract
{
    /**
     * many of the classes in Digitalus support overloading with magic methods
     *
     * @param string $name
     * @return stdclass
     */
    public static function parseMagicMethod ($name)
    {
        $response = false;
        $magicMethods = array('get' , 'set');
        foreach ($magicMethods as $method) {
            if (substr($name, 0, strlen($method)) == $method) {
                $response = new stdClass();
                $response->method = $method;
                $response->param = strtolower(Zend_Filter::filterStatic(str_replace($method, '', $name), 'Word_CamelCaseToUnderscore'));
            }
        }
        return $response;
    }
}
?>
